# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=bam
pkgver=0.5.1
pkgrel=3
pkgdesc="Fast and flexible build system using Lua"
options="!check" # Tests require python2
arch="all"
url="https://github.com/matricks/bam"
license="Zlib"
makedepends="lua5.3-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/matricks/bam/archive/v$pkgver.tar.gz
	use-lua5.3.patch
	"

build() {
	sh make_unix.sh
}

check() {
	make test
}

package() {
	install -Dm755 bam "$pkgdir"/usr/bin/bam
}

sha512sums="e6f1b3daad6073c58b0e3cbf836bb0a6b66f0c36532d6e6eca9949239ab8b584cc88f892cce6f74974e370a8a688f33a95dde86dd65cc1790e49e5f8aeab0fef  bam-0.5.1.tar.gz
7ad509adb06c896bc66f16e548d4ec8ef44a6c98571ae0a6e92b964717ff7f4981852792cb5bb83cb23ad4902e95aadf505c9f48ab9803b2359783a27be57c3b  use-lua5.3.patch"
